import mongoose, { Document, Schema } from 'mongoose';

const BehaviorSchema: Schema = new Schema({
    page: { type: String, required: true },
    timestamp: { type: Date, required: true },
    ip: { type: String, required: false },
    userAgent: { type: String, required: false },
    location: { type: Object, required: false },
    remark: { type: String, required: false },
    createdAt: { type: String },
    updatedAt: { type: String },
});

export default mongoose.model('Behavior', BehaviorSchema);